package com.bdyc.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class BusinessNumber {
	public static String getOrderNo(){
        long No = 0;
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddhhmmss");
        String nowdate = sdf.format(new Date());
        No = Long.parseLong(nowdate)*10000;//这里如果一天订单多的话可以用一万或更大
        No+=getNo();
        return getUserId()+No;
    }
    public static int getNo(){//返回当天的订单数+1
        return 001;
    }

public static String getUserId(){
    return "100010";
}

}
